﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace WhoIsUnderCover.Migrations
{
    public partial class init : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "wxUsers",
                columns: table => new
                {
                    Id = table.Column<long>(nullable: false)
                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
                    OpenId = table.Column<string>(nullable: true),
                    SubscribeDt = table.Column<DateTime>(nullable: true),
                    UnsubscribeDt = table.Column<DateTime>(nullable: true),
                    LastActiveDt = table.Column<DateTime>(nullable: true),
                    IsBkMember = table.Column<int>(nullable: true),
                    BkMemberId = table.Column<long>(nullable: true),
                    RecStatus = table.Column<int>(nullable: false),
                    RecCreateDt = table.Column<DateTime>(nullable: false),
                    RecUpdateDt = table.Column<DateTime>(nullable: true),
                    RecDeleteDt = table.Column<DateTime>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_wxUsers", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "wxUsers");
        }
    }
}
